package com.bingkaimedia.merchantbeta.app;
 
import com.bingkaimedia.merchantbeta.R;
import com.bingkaimedia.merchantbeta.libs.SessionManager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class Splash extends Activity{

	private static int SPLASH_TIME_OUT = 4000;
	SessionManager session;
 
	@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
    }
	
	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState); 
        overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
        setContentView(R.layout.splash);
         
        
        
        new Handler().postDelayed(new Runnable() {
  
 
            @Override
            public void run() { 

        		session = new SessionManager(getApplicationContext());    
             
        		//System.out.println("masuk fungsi else"); 
    	    	Intent i = new Intent(Splash.this, Signin.class);
                startActivity(i); 
                finish();
            	 
  
            }
        }, SPLASH_TIME_OUT);
    }
	
	 
	  
}
